import javax.swing.*;

public class CheckBoxTest extends JFrame{
	JCheckBox hour, minute, second;
	JPanel jp;
public CheckBoxTest () {
	hour = new JCheckBox("hour");
	minute = new JCheckBox("minute");
	second = new JCheckBox("second");
	JPanel jp = new JPanel();
	jp.add(hour);
	jp.add(minute);
	jp.add(second);
	setTitle("CheckBox");
	setSize(300, 300);
	setVisible(true);
	add(jp);

	
}
public static void main(String[] args) {
	CheckBoxTest cb = new CheckBoxTest();
}
}
